import 'package:flutter/material.dart';

/// homePage需要共享的数据
class HomePageProvider with ChangeNotifier{
  bool isMorePage = false; // 当前是否是更多页面
  int count = 0; // key
  AxisDirection direction = AxisDirection.down; // 方向

  void updateModel(){
    count ++;
    isMorePage = !isMorePage;
    direction = direction == AxisDirection.down ? AxisDirection.up : AxisDirection.down;
    notifyListeners(); // 通知
  }
}

///111